package com.acsior.hibernate.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * NoiBankAccount entity. @author MyEclipse Persistence Tools <b><i>powered by
 * Belev</i></b>
 */
@Entity
@Table(name = "noi_bank_accounts")
@GeneratorKey(tableName = "noi_bank_accounts")
public class NoiBankAccountVO extends HibernatePersistantIntegerIdVO {

	private static final long serialVersionUID = -5349491986783419135L;

	@Column(name = "bank_branch", nullable = false, length = 50)
	private String bankBranch;

	@Column(name = "bank_name", nullable = false, length = 100)
	private String bankName;

	@Column(name = "bic", nullable = false, length = 10)
	private String bic;

	@Column(name = "code_tp_noi", nullable = false, length = 5)
	private String codeTpNoi;

	@Column(name = "iban", nullable = false, length = 30)
	private String iban;

	@Column(name = "name_tp_noi", nullable = false, length = 100)
	private String nameTpNoi;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "nom_order_pension_type_id", nullable = false)
	private NomOrderPensionTypeVO nomOrderPensionType;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "structure_id", nullable = false)
	private StructureVO structure;

	/** default constructor */
	public NoiBankAccountVO() {
		super();
	}

	/** @return the bankBranch */
	public String getBankBranch() {
		return this.bankBranch;
	}

	/** @return the bankName */
	public String getBankName() {
		return this.bankName;
	}

	/** @return the bic */
	public String getBic() {
		return this.bic;
	}

	/** @return the codeTpNoi */
	public String getCodeTpNoi() {
		return this.codeTpNoi;
	}

	/** @return the iban */
	public String getIban() {
		return this.iban;
	}

	/** @return the nameTpNoi */
	public String getNameTpNoi() {
		return this.nameTpNoi;
	}

	/** @return the nomOrderPensionType */
	public NomOrderPensionTypeVO getNomOrderPensionType() {
		return this.nomOrderPensionType;
	}

	/** @return the structure */
	public StructureVO getStructure() {
		return this.structure;
	}

	/** @param bankBranch */
	public void setBankBranch(String bankBranch) {
		this.bankBranch = bankBranch;
	}

	/** @param bankName */
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	/** @param bic */
	public void setBic(String bic) {
		this.bic = bic;
	}

	/** @param codeTpNoi */
	public void setCodeTpNoi(String codeTpNoi) {
		this.codeTpNoi = codeTpNoi;
	}

	/** @param iban */
	public void setIban(String iban) {
		this.iban = iban;
	}

	/** @param nameTpNoi */
	public void setNameTpNoi(String nameTpNoi) {
		this.nameTpNoi = nameTpNoi;
	}

	/** @param nomOrderPensionType */
	public void setNomOrderPensionType(NomOrderPensionTypeVO nomOrderPensionType) {
		this.nomOrderPensionType = nomOrderPensionType;
	}

	/** @param structure */
	public void setStructure(StructureVO structure) {
		this.structure = structure;
	}
}